package com.example.loginmvvm.api

import com.example.loginmvvm.domain.OnSellDate
import com.example.loginmvvm.domain.ResultData
import retrofit2.http.GET
import retrofit2.http.Path

/*
 * class title: 
 * Author by RenChunLin, Email 18957806320@163.com, Date on 2021/4/21.
 * PS: Not easy to write code, please indicate.
 */
interface ApiService {
    companion object {
        const val BASE_URL = "https://api.sunofbeach.net/shop/"
    }

    //支持挂起
    @GET("onSell/{page}")
    suspend fun getOnSellList(@Path("page") page: Int): ResultData<OnSellDate>
}